package entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;


@Entity
@Table(name="classcourse")
public class classCourse1 {
/*
 * 2018.12.19
 * Hibernate0402工程用JDBC的方法实现对数据表的相关操作;
 * 不带参数的构造方法
 * 对象的私有属性，例如：id，name等等；
 * 对象的get方法；
 * 对象的set方法
 * useUnicode=true&characterEncoding=UTF-8 ---->指定字符的编码、解码格式
 * 
 */
	
	
private String id;
private String classcoursename;
private String date;

		public classCourse1(){
			
		}
		

		public classCourse1(String id, String classcoursename, String date) {
			this.id = id;
			this.classcoursename = classcoursename;
			this.date = date;
		}


@Id
@GeneratedValue(generator="system_uuid")
@GenericGenerator(name="system_uuid",strategy="uuid")
public String getid() {
	return id;
}
public void setid(String id) {
	this.id = id;
}

public String getclasscoursename() {
	return classcoursename;
}
public void setclasscoursename(String classcoursename) {
	this.classcoursename = classcoursename;
}

public String getdate() {
	return date;
}
public void setdate(String date) {
	this.date = date;
}


@Override
public String toString() {
	return "classCourse [id=" + id + ", classcoursename=" + classcoursename + ", date=" + date + "]";
}

}
